##
# @file CMakeLists.txt
# @brief main CMake
# @author JakeYang <add358@gmail.com>
# @version 0.1
# @date 2016-02-23
#

PROJECT(cjson)

CMAKE_MINIMUM_REQUIRED(VERSION 1.0)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)

AUX_SOURCE_DIRECTORY(lib CJSON_SRCS)

ADD_EXECUTABLE(international test/international.c ${CJSON_SRCS})
TARGET_LINK_LIBRARIES(international m)

ENABLE_TESTING()
ADD_TEST(international ${PROJECT_BINARY_DIR}/bin/international ${PROJECT_SOURCE_DIR}/test/chinese.json)

